package com.googlecode.horncomb.web.spring.context;

import org.springframework.context.ApplicationContext;

public class LocalApplicationContextLocator {
	private static final ThreadLocal<ApplicationContext> local = new ThreadLocal<ApplicationContext>();

	static protected void setApplicationContext(ApplicationContext context) {
		local.set(context);
	}

	static public ApplicationContext getLocalApplicationContext() {
		return (ApplicationContext) local.get();
	}
}
